package com.training1.core.modules.service;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.training1.core.common.service.CrudService;
import com.training1.core.common.utils.DateUtils;
import com.training1.core.common.utils.excel.ExcelUtil;
import com.training1.core.entity.ContractInfoEntity;
import com.training1.core.entity.HelpEntity;
import com.training1.core.entity.MemberEntity;
import com.training1.core.entity.PaymentEntity;
import com.training1.core.entity.SystemUserEntity;
import com.training1.core.modules.dao.ContractInfoDao;
import com.training1.core.modules.dao.HelpDao;
import com.training1.core.modules.dao.PaymentDao;

@Service
@Transactional
public class ContractInfoService extends CrudService<ContractInfoDao,ContractInfoEntity>{
	
	
	@Resource
	private ContractInfoDao contractInfoDao;
	
	/**
	 * 根据合同id　查询合同详情
	 * @param keyWord
	 * @return
	 */
	public ContractInfoEntity findListById(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		ContractInfoEntity contractList = contractInfoDao.findContractById(map);
		return contractList;
	}
}
